﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IHISCETeim.Library
{
    /// <summary>
    /// 导出Excel模板时,相应实体类属性标记所在的单元格行
    /// </summary>
    public class ExcelRowIndexAttribute : Attribute
    {
        public int RowIndex { get; set; }
        public ExcelRowIndexAttribute(int rowindex)
        {
            RowIndex = rowindex;
        }
    }
    /// <summary>
    /// 导出Excel模板时,相应实体类属性标记所在的单元格列
    /// </summary>
    public class ExcelCellIndexAttribute : Attribute
    {
        public int CellIndex { get; set; }
        public ExcelCellIndexAttribute(int cellindex)
        {
            CellIndex = cellindex;
        }
    }
    /// <summary>
    /// 如果数据类型为BOOL时,需要输入的值格式
    /// </summary>
    public class ExcelBoolCellAttribute : Attribute
    {
        public string TrueWriteTag { get; set; }

        public ExcelBoolCellAttribute(string writetag) {
            TrueWriteTag = writetag;
        }
    }
}
